<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="csrf-token" content="{{ csrf_token() }}" />
    <meta name ="keywords" content="{{$metakeyword}}">
    <meta name="description" content="{{$metadesp}}">
    <title>{{$sitename}}-{{$sitetitle}}</title>
    <link rel="stylesheet" href="/css/layout.css">
    <link rel="stylesheet" href="/css/lay_icon.css">
    <link rel="stylesheet" href="/css/index.css">
    <link href="https://cdn.bootcss.com/Swiper/4.0.7/css/swiper.css" rel="stylesheet">
    <script type="text/javascript" src="/js/move3.js"></script>
    <script type="text/javascript" src="/js/jquery-3.1.1.js"></script>
    <link rel="stylesheet" href="/js/magic-master/magic.min.css">
    <script src="https://cdn.bootcss.com/Swiper/4.0.7/js/swiper.min.js"></script>
    <style>
        .swiper-container {
            width: 100%;
            height: 100%;
        }
        .swiper-slide {
            text-align: center;
            font-size: 18px;
            background: #fff;

            /* Center slide text vertically */
            display: -webkit-box;
            display: -ms-flexbox;
            display: -webkit-flex;
            display: flex;
            -webkit-box-pack: center;
            -ms-flex-pack: center;
            -webkit-justify-content: center;
            justify-content: center;
            -webkit-box-align: center;
            -ms-flex-align: center;
            -webkit-align-items: center;
            align-items: center;
        }
        .swiper-wrapper img { width: 100%; height: 100%;}
        .music_float_window { width: 60px; height: 60px; background: #6EAECD; border-radius: 30px; float: right; transition: 2s;
            -moz-transition: 2s;	/* Firefox 4 */
            -webkit-transition: 2s;	/* Safari 和 Chrome */
            -o-transition: 2s;	/* Opera */}
        .music_float { position: relative; width: 60px; height: 60px; background: #6EAECD; position: absolute; right: 250px; top: 10px; border-radius: 30px;transition: 0.5s;
            -moz-transition: 0.5s;	/* Firefox 4 */
            -webkit-transition: 0.5s;	/* Safari 和 Chrome */
            -o-transition: 0.5s;	/* Opera */ transform:scale(0.8);}
        .music_float_play { width: 42px; height: 50px; background: #ffffff; border-radius: 25px; margin: 4px auto; padding-left: 8px;}
        .music_float_play a.play { display: inline-block; width: 30px; height: 30px; background: url("/images/bf.png"); margin: 10px auto;}
        .music_float_play a.paused { display: inline-block; width: 30px; height: 30px; background: url("/images/paused.png"); background-size: 100% 100%; margin: 10px auto;}
        .music_info { display: inline-block; cursor: pointer;}
        .f { width: 250px; height: 60px; position: absolute; right: 0;}
        .name { height: 30px; line-height: 30px; color: #e6e6e6; max-width:200px; overflow: hidden; text-overflow: ellipsis;}
        .lrc_show { color: #5FBFE7;}
        .lrc_show ul li {
             height: 25px; line-height: 25px;
        }
        .show_dialg { display: none; width: 500px; height: 350px; background: url("/images/music_bg.png") no-repeat
        #6CB9AF; position: absolute; top: 110px; right: 50px; z-index: 222; color: #fff; transition: .5s;
            -moz-transition: .5s;	/* Firefox 4 */
            -webkit-transition: .5s;	/* Safari 和 Chrome */
            -o-transition: .5s;}
        #triangle-up {
            width: 0;
            height: 0;
            border-left: 10px solid transparent;
            border-right: 10px solid transparent;
            border-bottom: 20px solid #6CB9AF;
            position: absolute;
            top:-10px; left: 130px;
        }
        .music-tips { width: 95%; height: 40px; line-height: 40px; margin: 0 auto; overflow: hidden;
            position: relative;}
        .music-tips span { display: inline-block; width: 20px; height: 25px; position: absolute; left: -17px; transition: .5s;
            -moz-transition: .5s;	/* Firefox 4 */
            -webkit-transition: .5s;	/* Safari 和 Chrome */
            -o-transition: .5s;}
        .queue_list_box { width: 90%; height: auto; margin: 0 auto;}
        .queue_item { width: 100%; height: 60px; border-bottom: 1px solid #7ED9CF; position: relative;}
        .queue_name { height: 30px;  line-height: 30px; font-size: 14px;}
        .queurinf { font-size: 13px;}
        .songnum { display: inline-block; width: 16px; height: 16px; line-height: 16px; margin-right: 8px; font-size: 12px; background: #ce8483; text-align: center; color: #fff; border-radius: 8px;}
        .now_listen { width: 90%; height: 80px; margin: 0 auto; padding-top: 10px;}
        .thumb_face { display: inline-block; vertical-align: top; width: 60px; height: 60px; border-radius: 30px; border: 1px solid #ccc; margin-right: 15px;}
        .play_box { display: inline-block;}
        .play_info { width:350px; height: 25px; position: relative;}
        .playing_name { width: auto; position: relative; font-size: 14px;}
        .playing { font-size: 13px; width: 100px; position: absolute; right: -125px; top: -5px; color: #ffcc66; padding-left: 15px; background: url("/images/wave.gif") no-repeat;}
        .play_details { font-size: 13px;}
        .process_bar { width: 100%; height: 2px; background: #add8e6; margin-top: 15px;}
        .process_bar p { width: 10%; height: 2px; background: #d88787; position: relative;}
        .process_bar p b { font-size: 11px; color: #fff; position: absolute; right: -20px; font-weight: normal; top: -18px;}
        .all_time { font-size: 13px; position: absolute; right: 30px; top: 85px;}
        .m_up_play { display: none; width: 16px; height: 16px; background: url("/images/m_up_play.png");position: absolute; right: 0px; top: 5px;}
    </style>
    <script>
         var music = '{{$musicdata['listIds']}}';
    </script>
</head>
<body>
<div class="header">
    <div class="logo">
        <a href="{{$siteurl}}">MINI秀 <b>bete1.0</b></a>
    </div>
    <!-- 音乐随性听 -->
    <div class="music_float">
        <div class="f">
         <div class="music_info" onclick="show_dialg()">
              <div class="name">歌名: {{$musicdata['data'][0]['m_name']}}</div>
              <div class="lrc_show">
                   <ul>
                       <li>加载中</li>
                   </ul>
              </div>
         </div>
         <div class="music_float_window">
              <div class="music_float_play">
                  <a href="javascript:;"  class="idMusicPlayControll paused"></a>
              </div>
         </div>
        </div>
    </div>
    {{-- end --}}
    <div class="l_rt">
        @if($user['islogin']==1)
            <div class="login_user">
                 <div class="user_info">
                      <div class="user_icon">
                          <img src="{{$user['bigpic']}}" alt="">
                      </div>
                      <div class="user_name"><a href="/profile">{{$user['username']}}</a></div>
                 </div>
                <a href="" style="font-size: 14px">退出</a>
            </div>
        @else
        <a href="javascript:;" onclick="login()">登录</a>
        <a href="javascript:;" onclick="register()">注册</a>
        @endif
    </div>
</div>
<div class="content">
    <div class="setbar">
        <ul>
            <li><a href="/"><i class="home"></i><span>首页</span></a></li>
            <li><a href="/cate/index"><i class="cate"></i><span>分类</span></a></li>
            <li><a href=""><i class="gc"></i><span>广场</span></a></li>
            <li><a href=""><i class="fa"></i><span>Fans</span></a></li>
            <li><i class="hide"></i><span>隐藏</span></li>
        </ul>
    </div>
    <div class="con" style="margin-left: 5px">
        <div class="index_show">
            <div class="side_banner">
            </div>
            <div class="side_command">
                <div class="swiper-container swiper-container-horizontal">
                    <div class="swiper-wrapper" style="transition-duration: 0ms; transform: translate3d(-4608px, 0px, 0px);">
                        <div class="swiper-slide" style="width: 1536px;"><img src="/images/banner_1.jpg" alt=""></div>
                        <div class="swiper-slide" style="width: 1536px;"><img src="/images/banner_2.jpg" alt=""></div>
                        <div class="swiper-slide swiper-slide-prev" style="width: 1536px;"><img src="/images/banner_3.jpg" alt=""></div>

                    </div>
                    <!-- Add Arrows -->
                    <div class="swiper-button-next"></div>
                    <div class="swiper-button-prev"></div>
                </div>
            </div>
        </div>
        <div class="con_l1">
           <div class="cate">
               @foreach($data['cate'] as $c)
                <div class="cate_box">
                     <div class="cate_title">{{$c['catename']}} <span>{{$c['sign']}}</span></div>
                     <div class="cate_item">
                          @foreach($c['room']['data'] as $r)
                          <div class="cate_list">
                              <a href="/live/room/{{$r['num']}}">
                              <img src="/images/{{$r['roomcover']}}" alt="">
                               <p></p>
                              </a>
                          </div>
                          @endforeach
                     </div>
                </div>
               @endforeach
           </div>

           <!-- 正在直播 -->
            <div class="show" style="margin-top: 10px;">
                 <div class="show_title"> 正在直播 </div>
                 <div class="show_item">
                      <div class="show_item_list">
                          <a href="">
                             <span class="tag">直播中</span>
                                   <img src="./images/5500581474415.jpg" alt="">
                             <span class="usnmae">污大琳老公</span>
                          </a>
                      </div>
                     <div class="show_item_list">
                         <a href="">
                             <span class="tag">直播中</span>
                             <img src="./images/5500581474415.jpg" alt="">
                             <span class="usnmae">污大琳老公</span>
                         </a>
                     </div>
                     <div class="show_item_list">
                         <a href="">
                             <span class="tag">直播中</span>
                             <img src="./images/5500581474415.jpg" alt="">
                             <span class="usnmae">污大琳老公</span>
                         </a>
                     </div>
                     <div class="show_item_list">
                         <a href="">
                             <span class="tag">直播中</span>
                             <img src="./images/5500581474415.jpg" alt="">
                             <span class="usnmae">污大琳老公</span>
                         </a>
                     </div>
                     <div class="show_item_list">
                         <a href="">
                             <span class="tag">直播中</span>
                             <img src="./images/5500581474415.jpg" alt="">
                             <span class="usnmae">污大琳老公</span>
                         </a>
                     </div>
                     <div class="show_item_list">
                         <a href="">
                             <span class="tag">直播中</span>
                             <img src="./images/5500581474415.jpg" alt="">
                             <span class="usnmae">污大琳老公</span>
                         </a>
                     </div>
                     <div class="show_item_list">
                         <a href="">
                             <span class="tag">直播中</span>
                             <img src="./images/5500581474415.jpg" alt="">
                             <span class="usnmae">污大琳老公</span>
                         </a>
                     </div>
                     <div class="show_item_list">
                         <a href="">
                             <span class="tag">直播中</span>
                             <img src="./images/5500581474415.jpg" alt="">
                             <span class="usnmae">污大琳老公</span>
                         </a>
                     </div>
                     <div class="show_item_list">
                         <a href="">
                             <span class="tag">直播中</span>
                             <img src="./images/5500581474415.jpg" alt="">
                             <span class="usnmae">污大琳老公</span>
                         </a>
                     </div>
                     <div class="show_item_list">
                         <a href="">
                             <span class="tag">直播中</span>
                             <img src="./images/5500581474415.jpg" alt="">
                             <span class="usnmae">污大琳老公</span>
                         </a>
                     </div>
                     <div class="show_item_list">
                         <a href="">
                             <span class="tag">直播中</span>
                             <img src="./images/5500581474415.jpg" alt="">
                             <span class="usnmae">污大琳老公</span>
                         </a>
                     </div>
                 </div>
            </div>
            <!--end -->

            <div class="minibo">
                 <div class="minibi_title"> MINI资讯</div>
                 <div class="minibo_item">
                      <div class="minibo_list">
                           <p>公告:</p>
                           <ul>
                               <li><a href="/cms/index">MINI播 打造自己的直播平台</a> <span>2017-10-12</span></li>
                               <li><a href="">MINI播 打造自己的直播平台</a> <span>2017-10-12</span></li>
                               <li><a href="">MINI播 打造自己的直播平台</a> <span>2017-10-12</span></li>
                               <li><a href="">MINI播 打造自己的直播平台</a> <span>2017-10-12</span></li>
                               <li><a href="">MINI播 打造自己的直播平台</a> <span>2017-10-12</span></li>
                               <li><a href="">MINI播 打造自己的直播平台</a> <span>2017-10-12</span></li>
                               <li><a href="">MINI播 打造自己的直播平台</a> <span>2017-10-12</span></li>
                           </ul>
                      </div>
                     <div class="minibo_list">
                         <p>新闻:</p>
                         <ul>
                             <li><a href="">MINI播 打造自己的直播平台</a> <span>2017-10-12</span></li>
                             <li><a href="">MINI播 打造自己的直播平台</a> <span>2017-10-12</span></li>
                             <li><a href="">MINI播 打造自己的直播平台</a> <span>2017-10-12</span></li>
                             <li><a href="">MINI播 打造自己的直播平台</a> <span>2017-10-12</span></li>
                             <li><a href="">MINI播 打造自己的直播平台</a> <span>2017-10-12</span></li>
                             <li><a href="">MINI播 打造自己的直播平台</a> <span>2017-10-12</span></li>
                             <li><a href="">MINI播 打造自己的直播平台</a> <span>2017-10-12</span></li>
                         </ul>
                     </div>
                     <div class="minibo_list">
                         <p>公告:</p>
                         <ul>
                             <li><a href="">MINI播 打造自己的直播平台</a> <span>2017-10-12</span></li>
                             <li><a href="">MINI播 打造自己的直播平台</a> <span>2017-10-12</span></li>
                             <li><a href="">MINI播 打造自己的直播平台</a> <span>2017-10-12</span></li>
                             <li><a href="">MINI播 打造自己的直播平台</a> <span>2017-10-12</span></li>
                             <li><a href="">MINI播 打造自己的直播平台</a> <span>2017-10-12</span></li>
                             <li><a href="">MINI播 打造自己的直播平台</a> <span>2017-10-12</span></li>
                             <li><a href="">MINI播 打造自己的直播平台</a> <span>2017-10-12</span></li>
                         </ul>
                     </div>
                 </div>
            </div>
        </div>
        <div class="con_lr">
            <div class="top-box">
                <div class="top-box_title">
                    <div class="top_box_titlename">
                        <span class="t_1">萌新</span><span class="t_2">Top</span>
                    </div>
                </div>
                <div class="top-box_con">
                    <div class="top_item">
                        <div class="top_num">1</div>
                        <div class="face"><img src="./images/5500581474415.jpg" alt=""></div>
                        <div class="info">
                            <p>墨染倾城</p>
                        </div>
                    </div>
                    <div class="top_item">
                        <div class="face"><img src="./images/5500581474415.jpg" alt=""></div>
                        <div class="info"><p>半游半戏半人生</p></div>
                    </div>
                    <div class="top_item">
                        <div class="face"><img src="./images/5500581474415.jpg" alt=""></div>
                        <div class="info">
                            <p>小酱油</p>
                        </div>
                    </div>
                    <div class="top_item">
                        <div class="face"><img src="./images/5500581474415.jpg" alt=""></div>
                        <div class="info">
                            <p>暗锁开车了</p>
                        </div>
                    </div>
                    <div class="top_item">
                        <div class="face"><img src="./images/5500581474415.jpg" alt=""></div>
                        <div class="info"></div>
                    </div>
                </div>
            </div>
            <div class="top-box">
                <div class="top-box_title">
                    <div class="top_box_titlename">
                        <span class="t_1">男神</span><span class="t_2">Top</span>
                    </div>
                </div>
                <div class="top-box_con">
                    <div class="top_item">
                        <div class="top_num">1</div>
                        <div class="face"><img src="./images/5500581474415.jpg" alt=""></div>
                        <div class="info">
                            <p>墨染倾城</p>
                        </div>
                    </div>
                    <div class="top_item">
                        <div class="face"><img src="./images/5500581474415.jpg" alt=""></div>
                        <div class="info"><p>半游半戏半人生</p></div>
                    </div>
                    <div class="top_item">
                        <div class="face"><img src="./images/5500581474415.jpg" alt=""></div>
                        <div class="info">
                            <p>小酱油</p>
                        </div>
                    </div>
                    <div class="top_item">
                        <div class="face"><img src="./images/5500581474415.jpg" alt=""></div>
                        <div class="info">
                            <p>暗锁开车了</p>
                        </div>
                    </div>
                    <div class="top_item">
                        <div class="face"><img src="./images/5500581474415.jpg" alt=""></div>
                        <div class="info"></div>
                    </div>
                </div>
            </div>
            <div class="top-box">
                <div class="top-box_title">
                    <div class="top_box_titlename">
                        <span class="t_1">女神</span><span class="t_2">Top</span>
                    </div>
                </div>
                <div class="top-box_con">
                    <div class="top_item">
                         <div class="top_num">1</div>
                         <div class="face"><img src="./images/5500581474415.jpg" alt=""></div>
                         <div class="info"></div>
                         <div class="top_border_rader"></div>
                    </div>
                    <div class="top_item">
                        <div class="top_num">2</div>
                        <div class="face"><img src="./images/5500581474415.jpg" alt=""></div>
                        <div class="info"></div>
                        <div class="top_border_rader"></div>
                    </div>
                    <div class="top_item">
                        <div class="top_num">3</div>
                        <div class="face"><img src="./images/5500581474415.jpg" alt=""></div>
                        <div class="info"></div>
                        <div class="top_border_rader"></div>
                    </div>
                    <div class="top_item">
                        <div class="top_num">4</div>
                        <div class="face"><img src="./images/5500581474415.jpg" alt=""></div>
                        <div class="info"></div>
                        <div class="top_border_rader"></div>
                    </div>
                    <div class="top_item">
                        <div class="top_num">5</div>
                        <div class="face"><img src="./images/5500581474415.jpg" alt=""></div>
                        <div class="info"></div>
                        <div class="top_border_rader"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="footer"></div>
<div class="show_dialg">
      <div id="triangle-up"></div>
      <div class="music-tips"><span>直</span><span>播</span><span>看</span><span>累</span><span>了</span><span>，</span><span>来</span><span>听</span><span>听</span><span>音</span><span>乐</span><span>吧</span></div>
     <div class="now_listen">
          <div class="thumb_face">
              
          </div>
          <div class="play_box">
               <div class="play_info">
                   <audio src="{{$musicdata['data'][0]['m_path']}}" autoplay></audio>
                    <span class="playing_name">{{$musicdata['data'][0]['m_name']}} <span class="playing">正在播放</span></span>
               </div>
               <div class="play_details">{{$musicdata['data'][0]['m_author']}}</div>
               <div class="process_bar"><p><b class="nowtime">0.55</b></p></div>
               <div class="all_time">10:04</div>
          </div>
     </div>
     <div class="queue_list_box">
         @for($i=1;$i<count($musicdata['data']);$i++)
          <div class="queue_item">
               <div class="queue_name">
                    <span class="songnum">{{$i}}</span><span class="songname">{{$musicdata['data'][$i]['m_name']}}</span>
               </div>
               <div class="queurinf">{{$musicdata['data'][$i]['m_author']}}</div>
               <div class="m_up_play"></div>
          </div>
          @endfor
     </div>
</div>
</body>
</html>
<script type="text/javascript" src="/js/Passport.js"></script>
<script type="text/javascript" src="/js/PlayControl.js"></script>
<script>
     function login() {
          showLoginWindow('login');
     }
     function register() {
         showLoginWindow('register');
     }
     var swiper = new Swiper('.swiper-container', {
         navigation: {
             paginationClickable: true,
             speed: 2000,
             loop: true,
             observer:true,
             observeParents:true,
             autoplayDisableOnInteraction : false,
             autoplay:1500,
             nextEl: '.swiper-button-next',
             prevEl: '.swiper-button-prev',
         },
     });

     animation();
     /**
      * 标题动画
      */
     function animation() {
         var musictipsSpan = document.getElementsByClassName('music-tips')[0].getElementsByTagName('span');
         for (i=0;i<musictipsSpan.length;i++){
             musictipsSpan[i].className= '';
         }
         var iNow = 0;
         var spanLeft = 0;
         var spanW = 20;
         var timer = null;
         timer = setInterval(function () {
                  musictipsSpan[iNow].style.left = spanLeft+"px";
                  spanLeft+=spanW;
                  iNow++;
                  if (iNow==musictipsSpan.length){
                       clearInterval(timer);
                       setTimeout(function () {
                           iNow = 0;
                           timer = setInterval(function () {
                               musictipsSpan[iNow].className = 'magictime rotateLeft';
                               iNow++;
                               if (iNow==musictipsSpan.length) {
                                   clearInterval(timer);
                                   for (i=0;i<musictipsSpan.length;i++){
                                       musictipsSpan[i].style.left = '-16px';
                                   }
                                   setTimeout(function () {
                                       animation()
                                   },2000);
                               }
                           },300)
                       },3000);

                  }
         },300)
     }

     function show_dialg() {
          var show_dialg = document.getElementsByClassName('show_dialg')[0];
          show_dialg.style.display = 'block';
          setTimeout(function () {
              show_dialg.style.top = 90+'px';
          },10)
     }
</script>